package offer;

/**
 * 描述:剑指 Offer 27. 二叉树的镜像
 *
 * @author Madison You
 * @created 22:38
 */
public class Easy_27_MirrorTree {
    public static void main(String[] args) {

    }

    public TreeNode mirrorTree(TreeNode root) {
        if (root == null) return root;
        root.left = mirrorTree(root.right);
        root.right = mirrorTree(root.left);
        return root;
    }
}
